
/*
 * .
 * All Rights Reserved.
 */
package com.model.demo.designmodel.singleton;

/**
 * HungrySingleton
 *
 * @author Liao Dongshan, 2019年05月07日
 *
 */
public class HungrySingleton {
    private HungrySingleton (){};
    private static final  HungrySingleton instance;
    static {
        instance=new HungrySingleton();
    }
    public HungrySingleton getInstance(){
        return instance;
    }
}
